﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CE.Promotion
{
    public class Promotion
    {
        public Promotion()
        {
            ClearFields();
        }

        private Int64 _promotionid;
        public Int64 PromotionId
        {
            get { return _promotionid; }
            set { _promotionid = value; }
        }

        private Int64 _refceuserId;
        public Int64 RefCEUserId
        {
            get { return _refceuserId; }
            set { _refceuserId = value; }
        }

        private string _promotionname;
        public string PromotionName
        {
            get { return _promotionname; }
            set { _promotionname = value; }
        }

        private string _username;
        public string UserName
        {
            get { return _username; }
            set { _username = value; }
        }

        private string _email;
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        private string _mobile;
        public string Mobile
        {
            get { return _mobile; }
            set { _mobile = value; }
        }

        private int _commencementmonth;
        public int CommencementMonth
        {
            get { return _commencementmonth; }
            set { _commencementmonth = value; }
        }

        private int _isExistCustomer;
        public int IsExistCustomer
        {
            get { return _isExistCustomer; }
            set { _isExistCustomer = value; }
        }

        private int _callat;
        public int CallAt
        {
            get { return _callat; }
            set { _callat = value; }
        }

        private Int64 _agentid;
        public Int64 AgentId
        {
            get { return _agentid; }
            set { _agentid = value; }
        }

        DateTime _createddate;
        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        DateTime _modifieddate;
        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _promotionid = 0;
            _refceuserId = 0;
            _promotionname = "";
            _username = "";
            _email = "";
            _mobile = "";
            _commencementmonth = 0;
            _isExistCustomer = 0;
            _callat = 0;
            _agentid = 0;
            _createddate = new DateTime();
            _modifieddate = new DateTime();
        }

    }
}
